package qj.app.trader;

public class Words {

	public static boolean isMark(char charAt) {
		return !isWord(charAt) && !Character.isWhitespace(charAt);
	}

	public static boolean isWord(char c) {
		return Character.isLetterOrDigit(c) || c=='/';
	}

	public static class Test {
		public static void main(String[] args) {
			System.out.println(Words.isWord('ấ'));
		}
	}

	public static boolean isWord(String str) {
		for (int i = 0; i < str.length(); i++) {
			if (!isWord(str.charAt(i))) {
				return false;
			}
		}
		return true;
	}

	public static boolean isMark(String str) {
		for (int i = 0; i < str.length(); i++) {
			if (!isMark(str.charAt(i))) {
				return false;
			}
		}
		return true;
	}
}
